<SCRIPT>
<?php if ($ajax_show){ ?>
	$(document).ready(function() {
		$("#category_tree").treeview({
			control : "#treecontrol",
			url : "/content/menu/",
			ajax : {
				data : {
					"additional" : function() {
						return "time: " + new Date;
					},
					"modelid" : function() {
						return "";
					}
				},
				type : "post"
			}
		});
	});
<?php }else{ ?>
	$(document).ready(function() {
		$("#category_tree").treeview({
			control : "#treecontrol",
			persist : "cookie",
			cookieId : "treeview-black"
		});
	});
<?php } ?>
	function open_list(obj) {
		window.top.$("#rightMain").attr("src",$(obj).attr("href"));
		window.top.$("#current_pos_attr").html($(obj).html());
	}
</SCRIPT>
<style type="text/css">
.filetree * {
	white-space: nowrap;
}

.filetree span.folder,.filetree span.file {
	display: auto;
	padding: 1px 0 1px 16px;
}
</style>
<div id="treecontrol">
	<span style="display: none"> <a href="javascript:;"></a> <a
		href="javascript:;"></a>
	</span> <a href="javascript:;"><img src="/img/minus.gif" /> <img
		src="/img/application_side_expand.png" /> 展开/收缩</a>

</div>
<?php echo $categorys; ?>